package com.service;

import java.util.List;

import com.dao.UserDao;
import com.model.User;

public class UserService {
	UserDao dao=new UserDao();
	//用户登录，通过返回集合是否为空判断登录与否
	public List<User> login(String uname,String upassword){
		return dao.login(uname, upassword);
	}
	//通过用户名查询数据
	public List<User>  queryUserByUname(String uname) {
		return dao.queryUserByUname(uname);
	}
	//用户注册，
	public void regist(User user) throws Exception{
		dao.regist(user);
	}
	//用户修改个人信息
	public void updateMess(User user) throws Exception{
		dao.updateMess(user);
	}
}
